<?php
include_once '../web_inc.php';
include_once ROOT_PATH.'/config/db_conn.php';
include_once './inc/gy_info_class.php';
include_once './smarty_inc.php';


$id=$_GET[id];

$info=new getInfo_gy();
$sql=$info->getinfo_detail($id);

while($detail=$info->class_fetch($sql)){
	$lin[]=array(
		              "title"=>$detail[title],
		              "content"=>$detail[content],
		              "price"=>$detail[price],
		              "xj"=>$detail[xj],
		              "posttime"=>date("Y:M:D",$detail[time]),
		              "pic"=>$detail[spic],
		              "qq"=>$detail[qq],
		              "tel"=>$detail[tel],
		              "hit"=>$detail[hit],
		             );
	$smarty->assign("info",$lin);
}
$smarty->assign("ROOT",ROOT_PATH);
$smarty->display("gy/detail.htm");
?>